home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / jumpingrope.swf / scripts / frame_36 / PlaceObject2_822_7 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Text File  |  2007-10-01  |  705b  |  24 lines

  1. onClipEvent(enterFrame){
  2.    _root.txt = Key.getAscii();
  3.    if(Key.isDown(90) && _root.user1Down == "no" && _root.user1Up == "up")
  4.    {
  5.       _root.user1Up = "down";
  6.       _root.userMc_1.gotoAndStop("jump");
  7.    }
  8.    if(Key.isDown(88) && _root.user2Down == "no" && _root.user2Up == "up")
  9.    {
  10.       _root.user2Up = "down";
  11.       _root.userMc_2.gotoAndStop("jump");
  12.    }
  13.    if(Key.isDown(67) && _root.user3Down == "no" && _root.user3Up == "up")
  14.    {
  15.       _root.user3Up = "down";
  16.       _root.userMc_3.gotoAndStop("jump");
  17.    }
  18.    if(Key.isDown(86) && _root.user4Down == "no" && _root.user4Up == "up")
  19.    {
  20.       _root.user4Up = "down";
  21.       _root.userMc_4.gotoAndStop("jump");
  22.    }
  23. }
  24.